package com.mk.admin.mapper;

import com.mk.admin.model.dto.*;
import com.mk.admin.model.entity.AdminEntity;
import com.mk.admin.model.entity.LoginEntity;
import com.mk.admin.model.entity.TableEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminMapper extends MKBaseMapper<AdminEntity> {
    LoginDto login(LoginEntity entity);

    List<AdminDto> select(AdminEntity entity);

    List<AdminRoleSysmenuDto> selectRoleSysMenuByUsernameOrPhone(AdminEntity entity);

    List<AdminDoctorDto> selectDoctorInfo(AdminEntity entity);

    List<TableDto> allTable(TableEntity tableEntity);

    Integer allTableCount(TableEntity tableEntity);
}
